package oop6;

/**
 * @author oldliu
 * @since 1.0
 */
//古筝
public class ChinaViolin {
    //弦的数目
    public static int lines=5;
    private String owner;//主人

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public ChinaViolin(String o){
        owner=o;
    }
    public void playTo(String to){
        System.out.println("这是一把"+lines+"弦琴");
        System.out.println(owner+"弹给"+to+"听！");
    }

    public static void print(){
        System.out.println("现在流行"+lines+"弦琴");
        // System.out.println("主人："+owner);//错误
    }
}
